using System.Collections;
using System.Collections.Generic;
using Framework.Library.Core.Config;
using Framework.Library.Core.Data.DataEngine;
using Framework.Library.Data.DAL;
using Framework.Library.Data.IDAO;
using Framework.Library.Core.Utils.Database;
using System.Text;
using System.Data;

namespace Framework.Library.Data.DAO.Oracle
{
    internal class AdsManager : IAdsManager
    {
        public List<ADSItem> GetList(List<string> lstAds)
        {
            QueryBuilder builder = new QueryBuilder("ADS_ITEMS");
            foreach (string ads in lstAds)
            {
                builder.AddCondition("ID", ads, ConditionOperators.Or);
            }
            return GeneralConnection.ExecuteList<ADSItem>(CommandType.Text, builder);
        }
    }
}